package com.walnut.dao;

import com.walnut.pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface UserDao {

    public boolean login(User user) throws SQLException;

    public List<User> select();

    User selectByName(String username) throws SQLException;

    public User selectById(Integer userId);

    public int insert(User user) throws SQLException;

    public int update(User user);

    public int delete(Integer userId);
}
